﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using JM.JCY.Common;
using JM.JCY.DataAccess;
using JM.JCY.BusinessEntity;

namespace JM.JCY.BusinessComponent
{
    public class PerformanceCaseBC : JCYBusinessComponentBase<PerformanceCaseDA>
    {
        public PerformanceCaseBC()
            : base(new PerformanceCaseDA())
        {
        }

        public void UpdatePerformanceCase(PerformanceCaseDataSet.T_PerformanceCaseDataTable dt)
        {
            this.DataAccess.UpdatePerformanceCase(dt);
        }

        public PerformanceCaseDataSet.T_PerformanceCaseDataTable GetPerformanceCase(int caseId, string name)
        {
            return this.DataAccess.GetPerformanceCase(caseId, name);
        }

        public void UpdateLiangHuaStatistics(PerformanceCaseDataSet.T_LiangHuaStatisticsDataTable dt)
        {
            this.DataAccess.UpdateLiangHuaStatistics(dt);
        }

        public PerformanceCaseDataSet.T_LiangHuaStatisticsDataTable GetLiangHuaStatistics(int caseId, string year, string dept, string name)
        {
            return this.DataAccess.GetLiangHuaStatistics(caseId, year, dept, name);
        }
    }
}
